%h1.video Edit Video
%table.video
  - form_for @video, videos_url, :method => :put do |form|
    %tr
      %td.field_title *Title:
      %td.field= form.text_field     :name
      %td.error= error_message_on    :video, :name
    %tr
      %td.field_title Show:
      %td.select_field
        %select{:name => 'video[show_id]'}
          %option{:value => ''}
          - @shows.each do |show|
            %option{:value => show.id}
              = show.location + " on " + show.start_time.strftime("%B %o at %I:%M %p")
    %tr
      %td.field_title Song:
      %td.select_field
        %select{:name => 'video[song_id]'}
          %option{:value => ''}
          - @songs.each do |song|
            %option{:value => song.id}
              = song.album ? (song.name + " on " + song.album.name) : (song.name)
    %tr
      %td.field_title *YouTube Link:
      %td.field= form.text_field     :link
      %td.error= error_message_on    :video, :link
    %tr
      %td.field_title *Description:
      %td.field= form.text_area      :description
      %td.error= error_message_on    :video, :description
    %tr
      %td.field_title *Caption:
      %td.field= form.text_field     :caption
      %td.error= error_message_on    :video, :caption
    %tr
      %td.submit= submit_tag 'Create'